<style type="text/css">
    #tpcalendar-div-weekcal {
        min-height: 200px;
    }
</style>

<div class="container" id="tpcalendar-div-plan"></div>

<?php
    $monday = time();
    if (date("w",$monday) != 1) {
        $monday = strtotime("last monday",$monday);
    }
    $monday = date("Y-m-d",$monday);
    
    FT::hidden("startdate",$monday,array(
        "id" => "tpcalendar-input-startdate"
    ));
    
    FT::hidden("now",$monday,array(
        "id" => "tpcalendar-input-now"
    ));
?>

<script type="text/javascript">
    getViewScript("tpcalendar",function(){
        viewTpcalendar.initializePage();
        viewTpcalendar.search();
    });
</script>